﻿using System;

namespace Terraria.UI
{
	// Token: 0x02000114 RID: 276
	public class LegacyGameInterfaceLayer : GameInterfaceLayer
	{
		// Token: 0x06000C2E RID: 3118 RVA: 0x0000C769 File Offset: 0x0000A969
		public LegacyGameInterfaceLayer(string name, GameInterfaceDrawMethod drawMethod, InterfaceScaleType scaleType = InterfaceScaleType.Game) : base(name, scaleType)
		{
			this._drawMethod = drawMethod;
		}

		// Token: 0x06000C2F RID: 3119 RVA: 0x0000C77A File Offset: 0x0000A97A
		protected override bool DrawSelf()
		{
			return this._drawMethod();
		}

		// Token: 0x04001002 RID: 4098
		private GameInterfaceDrawMethod _drawMethod;
	}
}
